package com.zl.boke.controller;

import com.zl.boke.config.exception.NotFoundException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhanglei2
 * @since 2020/1/12 15:00
 */
// 首页
@Controller
public class IndexController {
    @RequestMapping("/")
    public String index(){
        // int i = 9/3;
        // if(i == 3){
        //     throw new NotFoundException("页面不存在");
        // }
        // System.out.println("id = "+id +"   name = " +name);
        return "index";
    }
}
